import java.util.Scanner;

public class chengji {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int sum = 0;
        for(int i=0;i<5;i++){
            System.out.println("请输入成绩：");
            int score = scanner.nextInt();
            if(score<0||score>100){
                System.out.println("该成绩有误，不列入计算！");
            }
            else{
                sum+=score;
            }
            System.out.println("总成绩为："+sum);
        }
    }
}
